package com.ulic.customerManApplication.membermodule.dao;

import java.util.Collection;
import java.util.List;

import com.ulic.customerManApplication.membermodule.bo.Member;
import com.ulic.customerManApplication.membermodule.bo.SubMember;
import com.ulic.customerManApplication.membermodule.vo.SubMemberVO;
import com.ulic.customerManApplication.pager.PagerModel;

public interface MemberExtDao {

	public List<Member> getMembersByPhone(Collection<String> phones);
	
	public List<Member> getMembersByIdCard(Collection<String> idCards);
	
	public List<Member> getMembersByName(Collection<String> names);
	
	public List<Member> getMembersById(Collection<Integer> ids);
	 
	public void saveOrUpdateMembers(Collection<Member> members);
	
	public void saveSubMembers(Collection<SubMember> subMembers);
	
	public List<SubMember> getSubMembersByMember(Integer id);

	public PagerModel getMemberEnjoySubMembers(SubMemberVO subMemberVO, int curPage);

	public SubMember getMemberEnjoySubMemberByPhone(String sub_cellPhone, String memberEnjoyId);
	
	public List<SubMember> getAllSubMember();
	
	public List<Member> getAllMember();
	
	public void saveOrUpdateSubMember(Collection<SubMember> subMembers);
	
	public List<SubMember> getNoMemberSubMember();
}
